/**
 * 
 */
package com.dycn.posdashboard.data;

import java.io.Serializable;

/**
 * @author gongqiyi
 *
 */
public class MerchantInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1554130333144243547L;

//	private String merchantNo;
//	private String merchantName;
	private String branchNo;
	private String branchName;
	
	private String serviceProviderName;
	private String serviceProviderNo;
	
	private String terminalMerchantNo;
	private String terminalMerchantName;
	

	
	public String getServiceProviderName() {
		return serviceProviderName;
	}
	public void setServiceProviderName(String serviceProviderName) {
		this.serviceProviderName = serviceProviderName;
	}
	public String getServiceProviderNo() {
		return serviceProviderNo;
	}
	public void setServiceProviderNo(String serviceProviderNo) {
		this.serviceProviderNo = serviceProviderNo;
	}
	public String getTerminalMerchantNo() {
		return terminalMerchantNo;
	}
	public void setTerminalMerchantNo(String terminalMerchantNo) {
		this.terminalMerchantNo = terminalMerchantNo;
	}
	public String getTerminalMerchantName() {
		return terminalMerchantName;
	}
	public void setTerminalMerchantName(String terminalMerchantName) {
		this.terminalMerchantName = terminalMerchantName;
	}
	public String getBranchNo() {
		return branchNo;
	}
	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	
	@Override
    public boolean equals (Object in) {
        if(in == null) {
        	return false;
        }else if( in instanceof MerchantInfo) {
        	MerchantInfo inObj = (MerchantInfo) in;
        	if(terminalMerchantNo!=null&&terminalMerchantNo.equals(inObj.getTerminalMerchantNo())
        			&&branchNo!=null&&branchNo.equals(inObj.getBranchNo())){
        		return true;
        	}else{
        		return false;
        	}
        }else {
        	return false;
        }       
    } 
}
